﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using Wix.Aura.Common;
using Wix.Aura.UnitTests.Tools;

namespace Wix.Aura.UnitTests.Common {
	[TestFixture]
	public class ShortcutPropertySerialization {
		[SetUp]
		public void SetUp() {
			property = new ShortcutProperty("key");
		}

		ShortcutProperty property;

		[Test]
		public void EmptyShortCutProperty() {
			XmlAssert.AreEqual(@"<ShortcutProperty Key=""key"" />", property);
		}

		[Test]
		public void AllAttributes() {
			property.Id = "Id";
			property.Value = "Value";
			XmlAssert.AreEqual(@"<ShortcutProperty Id=""Id"" Key=""key"" Value=""Value"" />", property);
		}
	}
}
